﻿<%@ OutputCache Duration="1" VaryByParam="none" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TerminalGetDataAll.aspx.cs" Inherits="HNQXYJ.DataCenterJS.TerminalGetDataAll" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../CSS/SimpleContent.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/public.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="610">
                    <tr>
                        <td class="rtbg">
                            <span> 终端信息 &nbsp;》
                            </span>
                        </td>
                    </tr>
                    <tr>
                         <td  class="rbg" valign="top" align="center"  style="padding-top:20px" >
                             <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                               <%-- <tr>
                                    <td valign="top">
                                        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="search">
                                            <tr> 
                                                <td>
                                                    终端名称： 
                                                    <input name="" type="text"   style=" width:60%">
                                                </td>
                                                
                                                <td width="70">
                                                    <img src="../img/cx.gif">
                                                </td>
                                                <td width="15">
                                                    <img src="../images/icon9.gif">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td style=" text-align:left;">
                                        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
                                            <tr>
                                                <td  align="center" class="gn">
                                                <span style=" float:left;"><a href="TerminalInsertData.aspx"><img id="add" src="../img/xz.gif" /></a></span>   终端信息一览表
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style=" text-align:left;">
                                        <asp:ListView ID="Lvterminal" runat="server" DataKeyNames="Id" >
                                           
                                            <EmptyDataTemplate>
                                                <table>
                                                    <tr>
                                                        <td>
                                                            未返回数据。</td>
                                                    </tr>
                                                </table>
                                            </EmptyDataTemplate>
                                            
                                            <ItemTemplate>
                                                <tr >
                                                   
                                                   <%-- <td>
                                                          <%# Eval("Id") %>
                                                    </td>--%>
                                                    <td>
                                                        <%# Eval("Phone") %>
                                                    </td>
                                                    <td>
                                                        <%# Eval("TownName") %>
                                                    </td>
                                                    <%--<td>
                                                        <%# Eval("AreaCode") %>
                                                    </td>--%>
                                                    <td>
                                                        <%# Eval("Leader") %>
                                                    </td>
                                                    <td>
                                                         <%# Eval("LeaderPhone") %>
                                                    </td>
                                                    <td>
                                                       <%# Eval("Statuss") %>
                                                    </td>
                                                    <td>
                                                       <%# Eval("Lng") %>
                                                    </td>
                                                    <td>
                                                       <%# Eval("Lat") %>
                                                    </td>
                                                  <%--  <td>
                                                       <%# Eval("RankLevel") %>
                                                    </td>--%>
                                                    <td>
                                                        <%# Eval("AddDate").ToString().Split(' ')[0] %>
                                                    </td>
                                                    <td>
                                                        <%# Eval("Notes") %>
                                                    </td>
                                                     <td>
                                                       <%-- <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="删除" OnClientClick="return confirm('你确定要删除吗？')" />
                                                        <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />--%>
                                                        <a href='../BLL/TerminalAsh.ashx?id=<%# Eval("Id") %>' onclick='return confirm("你确定要删除吗？")' >删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <a href='../DataCenterJS/TerminalUpdateData.aspx?id=<%# Eval("Id") %>' >编辑</a>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <LayoutTemplate>
                                                <table  width="98%" border="0" cellspacing="0" cellpadding="0" class="dataList2" align="center">
                       
                                                              <thead>
                                                                <tr>
                                                                    <th>
                                                                        终端号码</th>
                                                                    <th >
                                                                        所在位置</th>
                                                                   <%-- <th >
                                                                        AreaCode</th>--%>
                                                                    <th >
                                                                        负责人</th>
                                                                    <th >
                                                                        联系方式</th>
                                                                    <th >
                                                                        在线状态</th>
                                                                    <th >
                                                                        经度</th>
                                                                    <th >
                                                                        纬度</th>
                                                                    <%--<th >
                                                                        RankLevel</th>--%>
                                                                    <th >
                                                                        添加日期</th>
                                                                    <th >
                                                                        补充说明</th>
                                                                    <th >
                                                                    </th>
                                                                </tr>
                                                                </thead> 
                                                                <tr ID="itemPlaceholder" runat="server">
                                                                </tr>
                                                 <%--      </table>
                                                        </td>
                                                    </tr>--%>
                                                    <tfoot>
                                                    <tr >
                                                        <td colspan="10" >
                                                            当前第 <asp:Label ID="lbCurrentPage" runat="server" Text=""></asp:Label>
                                                             页&nbsp;共<asp:Label ID="lbAllPages"  runat="server" Text=""></asp:Label>页 &nbsp;&nbsp;
                                                              <asp:LinkButton ID="firstPage" runat="server" onclick="firstPage_Click">首&nbsp;&nbsp; 页</asp:LinkButton>&nbsp;&nbsp;    
                                                              <asp:LinkButton ID="prePage" runat="server" onclick="prePage_Click">上一页</asp:LinkButton> &nbsp;&nbsp;                                                               
                                                              <asp:LinkButton ID="nextPage" runat="server" onclick="nextPage_Click">下一页</asp:LinkButton>&nbsp;&nbsp;
                                                              <asp:LinkButton ID="lastPage" runat="server" onclick="lastPage_Click">末&nbsp;&nbsp; 页</asp:LinkButton>&nbsp;&nbsp;
                                                               前往第<asp:TextBox ID="txtPageNumber" runat="server"></asp:TextBox>                                                            
                                                              <asp:Button ID="BtnGo"  runat="server" Text="GO" onclick="BtnGo_Click" /> 
                                                        </td>
                                                    </tr>
                                                    </tfoot>
                                                </table>
                                            </LayoutTemplate>
                                        </asp:ListView>                                        
                                    </td>
                                </tr>
                            </table>                     
                         </td>
                     </tr>
              </table> 
                                                                     
    </form>
</body>
</html>
